package day13;

import java.io.*;

public class TestOut {
    public static void main(String[] args)throws Exception {
        method();
        method1();

    }

    private static void method1() throws Exception {
        OutputStream out = null;
        out = new BufferedOutputStream(new FileOutputStream("D:\\JAVA\\2.txt", true));
        out.write(89);
        out.write(90);
        out.write(92);
        out.close();
    }

    private static void method()throws Exception{
        OutputStream out = null;
        out = new FileOutputStream("D:\\JAVA\\2.txt", true);
        out.write(88);
        out.write(89);
        out.write(90);
        out.close();

    }
}
